<template>
  <div>
    <el-dialog :visible.sync="freeDialog" title="江苏省中医院温馨提示">
      <h4 v-show="type === 'appoint'">您正在预约我院<span class="t1">0元号</span>，此类号源属于公益行为，不需支付。</h4>
      <h4 v-show="type === 'drugFee'">经结算，您的自费费用为<span class="t1">0元</span>，不需支付。</h4>
      <span slot="footer" class="dialog-footer">
        <a href="javascript:;" class="common-main-button" @click="nextPage()">我知道了</a>
      </span>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    data () {
      return {}
    },
    props: ['freeDialog', 'nextUrl', 'type'],
    mounted () {

    },
    methods: {
      nextPage () {
        this.$router.push({
          path: this.nextUrl,
          query: {
            result: 'victory'
          }
        })
      }
    }
  }
</script>

<style scoped>

</style>
